public class genericity {
    //1.泛型的上界: <T extends N> T必须是N的子类
    class Myarray<T extends Number>
    {

    }

    //2.复杂的边界: <T extends N>T必须实现Comparable接口
    class  Marray1<T extends Comparable>
    {

    }

    //3.泛型方法:
    public <T> void fun()
    {
    }
}
